package com.ruoyi.hire.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hire.mapper.HireOfflineLectureJobMapper;
import com.ruoyi.hire.domain.HireOfflineLectureJob;
import com.ruoyi.hire.service.IHireOfflineLectureJobService;

import javax.annotation.Resource;

/**
 * 线下宣讲会职位管理Service业务层处理
 *
 * @author linyang
 * @date 2025-07-21
 */
@Service
public class HireOfflineLectureJobServiceImpl implements IHireOfflineLectureJobService {
    @Resource
    private HireOfflineLectureJobMapper hireOfflineLectureJobMapper;

    /**
     * 查询线下宣讲会职位管理
     *
     * @param id 线下宣讲会职位管理主键
     * @return 线下宣讲会职位管理
     */
    @Override
    public HireOfflineLectureJob selectHireOfflineLectureJobById(Long id) {
        return hireOfflineLectureJobMapper.selectHireOfflineLectureJobById(id);
    }

    /**
     * 查询线下宣讲会职位管理列表
     *
     * @param hireOfflineLectureJob 线下宣讲会职位管理
     * @return 线下宣讲会职位管理
     */
    @Override
    public List<HireOfflineLectureJob> selectHireOfflineLectureJobList(HireOfflineLectureJob hireOfflineLectureJob) {
        return hireOfflineLectureJobMapper.selectHireOfflineLectureJobList(hireOfflineLectureJob);
    }

    /**
     * 新增线下宣讲会职位管理
     *
     * @param hireOfflineLectureJob 线下宣讲会职位管理
     * @return 结果
     */
    @Override
    public int insertHireOfflineLectureJob(HireOfflineLectureJob hireOfflineLectureJob) {
        hireOfflineLectureJob.setCreateTime(DateUtils.getNowDate());
        return hireOfflineLectureJobMapper.insertHireOfflineLectureJob(hireOfflineLectureJob);
    }

    /**
     * 修改线下宣讲会职位管理
     *
     * @param hireOfflineLectureJob 线下宣讲会职位管理
     * @return 结果
     */
    @Override
    public int updateHireOfflineLectureJob(HireOfflineLectureJob hireOfflineLectureJob) {
        hireOfflineLectureJob.setUpdateTime(DateUtils.getNowDate());
        return hireOfflineLectureJobMapper.updateHireOfflineLectureJob(hireOfflineLectureJob);
    }

    /**
     * 批量删除线下宣讲会职位管理
     *
     * @param ids 需要删除的线下宣讲会职位管理主键
     * @return 结果
     */
    @Override
    public int deleteHireOfflineLectureJobByIds(Long[] ids) {
        return hireOfflineLectureJobMapper.deleteHireOfflineLectureJobByIds(ids);
    }

    /**
     * 删除线下宣讲会职位管理信息
     *
     * @param id 线下宣讲会职位管理主键
     * @return 结果
     */
    @Override
    public int deleteHireOfflineLectureJobById(Long id) {
        return hireOfflineLectureJobMapper.deleteHireOfflineLectureJobById(id);
    }
}
